package com.personal.gateway.custom.customEnum;

/**
 * @author BigHead
 * @date 2021/12/24 17:20
 * @description LoginTypeEnum
 */
public enum LoginTypeEnum {

    /**
     * 正常登录
     */
    OK("登录正常", 0),
    /**
     * 录入参数异常
     */
    PARAMETER_ERROR("参数异常", -10),
    /**
     * 账户异常
     */
    ACCOUNT_ERROR("账户异常", -20),

    /**
     * 验证码错误
     */
    CAPTCHA_ERROR("验证码异常", -30);

    private final String typeMessage;
    private final int typeValue;

    LoginTypeEnum(String typeMessage, int typeValue){
        this.typeMessage = typeMessage;
        this.typeValue = typeValue;
    }

    public String getTypeMessage() {
        return typeMessage;
    }

    public int getTypeValue() {
        return typeValue;
    }
}
